﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Xml.Serialization;

namespace CodeSnippetsEditor
{
    public class ClassSnippet
    {
        private ClassImports imports = null;
        private ClassDeclarations declarations = null;
        private ClassCode code = null;

        /// <summary>
        /// Initializes a new instance of the <see cref="ClassSnippet"/> class.
        /// </summary>
        public ClassSnippet()
        {
            imports = new ClassImports();
            declarations = new ClassDeclarations();
            code = new ClassCode();
        }

        /// <summary>
        /// Gets or sets the imports.
        /// </summary>
        /// <value>The imports.</value>
        [XmlElement()]
        public ClassImports Imports
        {
            get
            {
                return imports;
            }
            set
            {
                imports = value;
            }
        }

        /// <summary>
        /// Gets or sets the declarations.
        /// </summary>
        /// <value>The declarations.</value>
        [XmlElement()]
        public ClassDeclarations Declarations
        {
            get
            {
                return declarations;
            }
            set
            {
                declarations = value;
            }
        }

        /// <summary>
        /// Gets or sets the code.
        /// </summary>
        /// <value>The code.</value>
        [XmlElement()]
        public ClassCode Code
        {
            get
            {
                return code;
            }
            set
            {
                code = value;
            }
        }
    }
}
